// import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router/lib/Router';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import config from './config';
import configure from './store/configureStore';
import myhistory from './history';

const store = configure({ config, });
const history = syncHistoryWithStore(myhistory, store);


ReactDOM.render(
  <Provider store={store}>
    <Router history={history}>
        { routes }
    </Router>
  </Provider>,
  document.getElementById('root')
);
